package com.atguigu.serviceedu.mapper;

import com.atguigu.serviceedu.entity.EduCourse;
import com.atguigu.serviceedu.entity.frontvo.CourseWebVo;
import com.atguigu.serviceedu.entity.vo.CourseEarnMVo;
import com.atguigu.serviceedu.entity.vo.CoursePublishVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.*;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author gengky
 * @since 2021-09-20
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {
    public CoursePublishVo getPublishCourseInfo(String courseId);
    // 根据课程id，编写sql语句查询课程信息
    public CourseWebVo getBaseCourseInfo(String courseId);

    public List<CourseEarnMVo> getCourseEarn(Date begin,Date end);

    public List<CourseEarnMVo> getCourseBuy(Date begin,Date end);
}
